<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="fragments/layout(title='菜谱管理-编辑',jsPaths='/static/js/food/menu/edit.js')">
<div class="right" th:fragment="right">
    <!--面包屑-->
    <div class="breadcrumb layui-bg-gray">
                <span class="layui-breadcrumb" lay-separator=">">
                    <a th:href="@{/}">首页</a>
                    <a href="/foodManage">菜谱管理</a>
                    <a href="/foodManage">菜谱管理</a>
                    <a><cite>编辑</cite></a>
                </span>
    </div>

    <!--主体内容区-->
    <div class="form-content layui-container">
            <form class="layui-form" th:action="@{/foodManage/update}" method="post">
                <input type="hidden" name="id"  th:value="${foodModel.id}">
                <div class="layui-form-item">
                    <label class="layui-form-label must">餐谱日期</label>
                    <div class="layui-input-block">
                        <input type="text" name="foodDate"  id="foodDate" readonly lay-verify="required" th:value="${foodModel.foodDate}"  placeholder="餐谱日期"  autocomplete="off" class="layui-input ">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label must">菜名</label>
                    <div class="layui-input-block">
                        <input type="text" name="foodName" maxlength="20" lay-verify="required" th:value="${foodModel.foodName}"  placeholder="餐谱名"  autocomplete="off" class="layui-input ">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label must">配料</label>
                    <div class="layui-input-block">
                        <input type="text" name="foodBurden" maxlength="255" lay-verify="required|eburdenFood"  th:value="${foodModel.foodBurden}"  placeholder="配料"  autocomplete="off" class="layui-input ">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label must">用餐时间</label>
                    <div class="layui-input-block">
                        <input type="text" name="foodTime" id="foodTime" readonly lay-verify="required"th:value="${foodModel.foodTime}"  placeholder="用餐时间"  autocomplete="off" class="layui-input ">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label must">厨师</label>
                    <div class="layui-input-block">
                        <input type="text" name="createUserName"  maxlength="10" lay-verify="required" th:value="${foodModel.createUserName}"  placeholder="厨师"  autocomplete="off" class="layui-input ">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn  layui-btn-normal" lay-submit lay-filter="submitBtn">保存</button>
                        <a href="/foodManage" class="layui-btn layui-btn-primary">返回</a>
                    </div>
                </div>
            </form>
    </div>
</div>
</html>